package cn.tedu._02article.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum StatusCode {
    OPERATION_SUCCESS(10100, "操作成功"),
    OPERATION_FAILED(10200, "操作失败"),
    USERNAME_PASSWORD_ERROR(10300, "用户名或密码错误"),
    NOT_LOGIN(10400, "未登录"),
    VALIDATED_ERROR(10500, "参数校验失败"),

    NOT_FOUND(1060,"文章不存在"),

    THROWABLE_ERROR(6666, "未知异常"),
    USERNAME_EXISTS(1000, "用户名被占用"),
    MAX_UPLOAD_SIZE_ERROR(9999, "上传文件大小超出限制");
    private Integer state;
    private String message;

}
